package com.jiyun.feign;

import com.github.pagehelper.PageInfo;
import com.jiyun.vo.day10.TopicDto2;
import com.jiyun.vo.day10.TopicVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @Author yangYingJie
 * @Date 2023/8/29 16：26
 **/
@FeignClient("day10-topic")
public interface FeignTopic {
    //根据传递过来的试卷id查询出它里面的题目
    @RequestMapping("/topic/findCAll")
    public PageInfo<TopicVo> findCAll(@RequestBody TopicDto2 dto);

    //根据传递过来的试卷id查询出它里面的题目
    @RequestMapping("/topic/findCAll2")
    public PageInfo<TopicVo> findCAll2(@RequestBody TopicDto2 dto);


}
